package admin

import (
	"e_mall_server/service"
	"github.com/gin-gonic/gin"
	"go.uber.org/zap"
)

/**
 * @Author: zhaobin
 * @Description TODO
 * @Date: 2022-05-10 20:42
 */

// GetGoodsColorList 获取颜色列表接口
func GetGoodsColorList(c *gin.Context) {
	goodsColorList, err := service.GetGoodsColorList()
	if err != nil {
		zap.L().Error("service.GetGoodsColorList() failed", zap.Error(err))
		ResponseError(c, "查询颜色列表失败")
		return
	}
	ResponseSuccess(c, goodsColorList)
}
